2/15/2023

Introduction

R Markdown

This is an R Markdown presentation. Markdown is a simple formatting syntax for authoring HTML, PDF, and MS Word documents. For more details on using R Markdown see http://rmarkdown.rstudio.com.

When you click the Knit button a document will be generated that includes both content as well as the output of any embedded R code chunks within the document.

Slide with Bullets

  • Bullet 1
  • Bullet 2
  • Bullet 3

Slide with R Output

summary(cars)
##      speed           dist       
##  Min.   : 4.0   Min.   :  2.00  
##  1st Qu.:12.0   1st Qu.: 26.00  
##  Median :15.0   Median : 36.00  
##  Mean   :15.4   Mean   : 42.98  
##  3rd Qu.:19.0   3rd Qu.: 56.00  
##  Max.   :25.0   Max.   :120.00

Slide with Plot

A plot of pressure.

A plot of pressure.

A title

A subtitle

A list of things

  • one

-two

a slide with no title

### Highlighted code

a <- 1
b <- 2
a/b
## [1] 0.5

some equations

A standalone eqn

\[ y_i = \alpha + \beta x_i + \epsilon_i \]


an inline equation where \(\epsilon \sim \text{N} (0, sigma^2)\)

A title here

A title here

## a simple regression model
fit <- lm(dist ~ speed, data = cars)
## model summary
summary(fit)
## 
## Call:
## lm(formula = dist ~ speed, data = cars)
## 
## Residuals:
##     Min      1Q  Median      3Q     Max 
## -29.069  -9.525  -2.272   9.215  43.201 
## 
## Coefficients:
##             Estimate Std. Error t value Pr(>|t|)    
## (Intercept) -17.5791     6.7584  -2.601   0.0123 *  
## speed         3.9324     0.4155   9.464 1.49e-12 ***
## ---
## Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
## 
## Residual standard error: 15.38 on 48 degrees of freedom
## Multiple R-squared:  0.6511, Adjusted R-squared:  0.6438 
## F-statistic: 89.57 on 1 and 48 DF,  p-value: 1.49e-12

centered

A slide with some centered content

This text is centered

This text is not

Two-column layout

  • A photo collage
  • of some women in science
  • featured in SAFS News

A slide with colored text

This text is red

This text is blue

Future Steps

This is blue and bigger

Slide with presenter notes

This slide has some notes, but they’re hidden from view